package com.gujiangbo.mapstruct;

import java.util.Date;

public class BuilderClientMain {

    public static void main(String[] args) {
        Student zhangSan = Student.builder().name("张三")
                .birthday(new Date())
                .age(34)
                .gender(GenderEnum.Female)
                .height(178.4).build();

        Student zhangSan2 = Student.builder().name("张三")
                .birthday(new Date())
                .age(34)
                .gender(GenderEnum.Female)
                .height(178.4).build();

        System.out.println(zhangSan == zhangSan2);

        System.out.println(zhangSan.hashCode());
        System.out.println(zhangSan2.hashCode());


    }
}
